<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{$meta.name}</title>
</head>
<body>
    <table>
        <tr>
            <foreach name="fields" item="field">
            <th>{$field.title}</th>
            </foreach>
            <th>操作</th>
        </tr>
        <foreach name="list" item="item">
            <tr>
                <foreach name="fields" item="field">
                <td><?php echo $item[$field["name"]] ?></td>
                </foreach>
                <td>
                    <a href="{:url('showItemPage',['scene_id'=>$meta['id'],'id'=>$item['id']])}">修改</a>
                    <a href="{:url('deleteItem',['scene_id'=>$meta['id'],'id'=>$item['id']])}">删除</a>
                </td>
            </tr>
        </foreach>
    </table>
    <p>
        <a href="{:url('showCreatePage',['scene_id'=>$meta['id']])}">添加</a>
    </p>
</body>
</html>
